package model;

/**
 * A class to simulate a die
 * @author Anton
 */
public class Die {

    //An empty constructor
    public Die(){
    } //constructor

    /**
     * Throws a die.
     * @return A number between 1 to 6.
     */

    public int throwDie(){
        return (int)(Math.floor(Math.random()*(6))+1);
    } //throwDice


//
//	/**
//	 * A method to simulate a dieThrow.
//	 * Goes from fast to slow and then stop.
//	 * @return A number between 1-6 like a dice.
//	 */
//	public int throwDiceSlow() {
//		int aNumber = throwDie();
//	int d = 0;
//	for(int i = 0; i <= 100; i++){
//		if(d != 1000){
//			try {
//				System.out.println(throwDie());
//				Thread.sleep(d);
//			} catch (InterruptedException e) {
//				e.printStackTrace();
//			}
//		}
//		else{
//			break;
//		}
//		d ++;
//	}
//	return aNumber;
//}
//	}


}
